package com.ww.java8.fp.lambda;

/**
 * TODO
 *
 * @author wanggw
 * @date 2022-11-15 06:54:16
 */
public class RunnableMethodReference {
    /**
     * 输出
     * 匿名
     * lambda
     * Go::go()
     * @param args
     */
    public static void main(String[] args) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("匿名");
            }
        }).start();

        new Thread(
                () -> System.out.println("lambda")
        ).start();

        new Thread(Go::go).start();
    }
}

class Go {
    static void go() {
        System.out.println("Go::go()");
    }
}